package com.cloud.punish.workflow.handler;

import org.springframework.context.ApplicationContext;

import com.cloud.punish.workflow.command.WfRequest;
import com.cloud.punish.workflow.command.WfResponse;

public abstract class BeforeHandler implements Handler{

	@Override
	public void handler(WfRequest request, WfResponse resp, HandlerChain chain) {
		this.beforeHandler(request, resp, chain.getApplicationContext());
		chain.doHandler(request, resp);
	}
	
	public abstract void beforeHandler(WfRequest request, WfResponse resp, ApplicationContext context);

}
